package com.akuhome.resource.dao;

import com.akuhome.resource.entity.Character;
import org.omg.CORBA.INTERNAL;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CharacterDao {
    List<Character> findAllCharacter();
    Integer insertCharacter(Character character);
    Integer updateCharacter(Character character);
    Integer deleteCharacterById(Integer characterId);
    Character findCharacterById(Integer characterId);

    Integer addCharacterUserCount(Integer characterId,Integer count);

    Integer enableAuthByCharacterId(Integer characterId,Long authCode);
    Integer disableAuthByCharacterId(Integer characterId,Long authCode);
    Integer updateAuthByCharacterId(Integer characterId,Long authCode);

    List<Character> findCharactersByMessageConfigId(Integer messageConfigId);
}
